package com.youboy.wechatapi.domain.mysql;

import java.io.Serializable;
import java.util.Date;

import com.youboy.wechatapi.domain.enums.SearchType;

/**
 * @ProjectName：wechatapi   
 * @author：冉尧（Yvan）
 * @CreateTime：2014年10月28日 下午2:12:16  
 * @Remarks：   
 */
@SuppressWarnings("serial")
public class SearchInfo implements Serializable {

	private int id;
	
	//搜索类型：1.产品，2.公司
	private int type;
	
	private String openid;
	
	//搜索内容
	private String content;
	
	//关键词
	private String keyword;
	
	private Date createTime;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getKeyword() {
		return keyword;
	}

	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	public SearchInfo() {
		// TODO Auto-generated constructor stub
	}

	public SearchInfo(SearchType type, String openid, String content, String keyword) {
		super();
		this.type = type.value();
		this.openid = openid;
		this.content = content;
		this.keyword = keyword;
		this.createTime = new Date();
	}
	
	
}


